import { welcome } from "./welcome";
export const getTime = () => {
  let message = '';
  // 通过内置构造函数
  let hours = new Date().getHours();
  if (hours <= 12) {
    message = `早上好，${welcome()}！`;
  } else if (hours <= 16) {
    message = `下午好，${welcome()}！`;
  } else {
    message = `晚上好，${welcome()}！`;
  }
  return message;
}